﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using MINERP.GroupMember.Presenter;

namespace MINERP.GroupMember
{
    public partial class FrmNotify : Form
    {
        public string msg;
        public FrmToolPresenter _presenter;

        public FrmNotify(FrmToolPresenter presenter)
        {
            InitializeComponent();
            _presenter = presenter;
        }

        private void btnYes_Click(object sender, EventArgs e)
        {
            _presenter.Notify = !chkNoNotify.Checked;

            _presenter.notifyOptions = 1;
            this.Close();
        }

        private void btnNo_Click(object sender, EventArgs e)
        {
            _presenter.Notify = !chkNoNotify.Checked;

            _presenter.notifyOptions = 2;
            this.Close();
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            _presenter.Notify = !chkNoNotify.Checked;

            _presenter.notifyOptions = 3;
            this.Close();
        }

        private void FrmNotify_Load(object sender, EventArgs e)
        {
            lbMessage.Text = msg;
        }
    }
}
